home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4336 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!eskimo!dai
  3. From: dai@eskimo.com (Davidson Corry)
  4. Subject: Re: Typedefs (was Re: Hungarian Notation
  5. X-Nntp-Posting-Host: eskimo.com
  6. Message-ID: <DLyK0v.Kr1@eskimo.com>
  7. Sender: news@eskimo.com (News User Id)
  8. Organization: Eskimo North (206) For-Ever
  9. X-Newsreader: NewsWerthy 1.82 (unregistered)
  10. References:  <4du0do$2q9@news1.usa.pipeline.com>
  11. Date: Mon, 29 Jan 1996 19:41:19 GMT
  12.  
  13. In <4du0do$2q9@news1.usa.pipeline.com>, grantp@usa.pipeline.com wrote:
  14.  
  15. : typedef, like any other language feature, is a tool.  A tool can be
  16. : overused as well as underused.  No one can say precisely how much a tool
  17. : should be used, but avoiding its use altogether IMO falls in the
  18. : underused category.
  19. : I propose that a programmer who uses only a subset of the language is
  20. : less effective than one who uses the all of it -- all else being equal.
  21.  
  22. There may be legitimate reasons for restricting use of certain language
  23. features as a matter of policy.  For example,
  24.  
  25.   - your compiler does not implement them, or does so poorly
  26.  
  27.   - some of your staff, or potential new hires, are unfamiliar with
  28.      or untrained in them
  29.  
  30.   - experience has shown their use to be prone to misunderstanding
  31.      or difficult to maintain (e.g. goto -- and, please, let's not
  32.      start that again... <grin>)
  33.  
  34. But I suspect such reasons fall under your "all else being equal"
  35. clause.
  36.  
  37. Certainly I agree that a good programmer should aspire to understand
  38. what each language feature is intended to do, and how to use it for that
  39. purpose -- if for no other reason than to know when _not_ to use it.
  40.  
  41. And I think that typedef is too simple and fundamental to be discarded
  42. out of hand.
  43.